changed template structure, added cropped value to media model, reduced amount of vars in session