Fixed image re-sizing and restricting image URLs