Avatar Resize Method (Best - Slower) generates a fatal error #2633

Tests successfully done under Php 5.3.17 and 5.5.14