resize broken-pepper image and created a set icon function