Change images using c language