checks if the picture is public in main view, added entry 1 at the upload php