After an image is transformed using the built-in Layer class, metadata associated with the JPEG image is not maintained. You are using com.day.image.Layer class from CQ library. You have a JPEG image with metadata (EXIF or ITPC).
Use other existing solutions for that and integrate it into CQ.
Layer class does not support metadata storage. This information is ignored.