Trying out image manipulation exercises in R