The function wp_get_attachment_url doesn't support a size parameter. Changed to wp_get_attachment_image_src that supports it.