resizes and renames pic