Cropping and setting image transparency