resize picture after taking