fix load image in snap