remove unused extension
restore saving image's size