Solved, I found the solution for those who might be interested.
In your database, via cpanel of your server you need to go in PhpMyAdmin and look for the table preference (should be oc_t_preference ), inside the table search for "allowedExt" in the field s_name, the s_value should be "png,gif,jpg,jpeg". If you don't have the jpeg, just add it to the filed