File upload functionality working for pngs (squares)