change image resolution and delete html tag