proper photo upload functionality using CarrierWave MiniMagic