Php gd resize image keep aspect ratio. JavaScript | Resolution Image