resized image with c struct to make the back card image more even