Fixed URL detection
Re-added image size option