add graphics magic for validating uploaded files