PHP image resize based on query string