Use BASE_DIR instead of hardcoding the full path to the images
a working Nginx/PHP-FPM configuration