Added some logging for image picking, figuring what's going wrong.