Simple PHP class to handle image uploads