CS185 android app using gallery, scaling, rotation, translation