image handling. now image is fucked up. to fix pixel_put_img