Added the dinamic resize also in PhotoActivity