Help w/ Complex S3 Pricing Scenario

I know S3 costs are in relation to the amount of GB stored in a bucket. But I was wondering, what happens if you only need an object stored temporarily, like a few seconds or minutes, and then you delete it from the bucket? Is the cost still incurred?

I was thinking about this in the scenario of image compression to reduce size. For example, a user uploads a 200MB photo to a S3 bucket (let's call it Bucket 1). This could trigger a Lambda which applies a compression algorithm on the image, compressing it to let's say 50MB, and saves it to another bucket (Bucket 2). Saving it to this second bucket triggers another Lambda function which deletes the original image. Does this mean that I will still be charged for the brief amount of time I stored the 200MB image in Bucket 1? Or just for the image stored in Bucket 2?