reducing image size
hiding alert